#ifndef _CANARY2_NET_POSIX_PIPE_H_
#define _CANARY2_NET_POSIX_PIPE_H_

#include "fd_guard.h"

namespace wilson::sys
{
    class posix_pipe
    {
    public:
        posix_pipe();

        const fd_guard& readfd()    const noexcept { return pp_read; }
        const fd_guard& writefd()   const noexcept { return pp_write; }
        
    private:
        fd_guard pp_read;
        fd_guard pp_write;
    };
}

#endif
